package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.FilterIncomeList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AdminPageDaoMarketValueAccountVO;
import com.sc.nft.entity.vo.DaoFilterUserVO;
import com.sc.nft.entity.vo.FilterListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (sc_filter_income_list)数据Mapper
 *
 * @author Sun
 * @since 2022-10-18 11:00:01
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface FilterIncomeListMapper extends BaseMapper<FilterIncomeList> {

    /**
     * 分页查询过滤用户列表
     * @param page
     * @return
     */
    Page<FilterListVO> getPageFilterList(@Param("page") Page page, @Param("daoId") Long daoId, @Param("userTel") String userTel);


    /**
     * 分页获取DAO下的市值账号
     * @param page
     * @param userTel
     * @return
     */
    Page<AdminPageDaoMarketValueAccountVO> getPage(Page page,@Param("daoId") Long daoId,@Param("userTel") String userTel);

    /**
     * 获取DAO下的市值账号
     * @param daoId
     * @return
     */
    List<Long> getListByDaoId(@Param("daoId") Long daoId);

    Page<DaoFilterUserVO> getDaoFilterUser(Page page, @Param("daoId") Long daoId, @Param("userTel") String userTel);
}
